package com.ljh.jxc.modules.suo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ljh.jxc.common.utils.PageUtils;
import com.ljh.jxc.common.utils.Query;

import com.ljh.jxc.modules.suo.mapper.AccountMapper;
import com.ljh.jxc.modules.suo.entity.Account;
import com.ljh.jxc.modules.suo.service.AccountService;


@Service("accountService")
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Account> page = this.page(
                new Query<Account>().getPage(params),
                new QueryWrapper<Account>()
        );

        return new PageUtils(page);
    }

}